﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Models
{
    public abstract class MultipleChoiceQuestion : Question
    {
        public virtual int allowedAnswers { get; set; }
        public virtual IList<QuestionOption> options { get; set; }

        public override String GetKeypadResponseType()
        {
            if (this.allowedAnswers == 1)
            {
                return "singleResponse";
            }
            return "multiResponse";
        }

        public abstract MultipleChoiceQuestion GetCompareWith();

        public abstract void NullCompareWith();
    }
}
